package com.fyh.feign.fallback;

import com.fyh.constant.MessageConstant;
import com.fyh.entity.common.Result;
import com.fyh.entity.user.Vitae;
import com.fyh.feign.EmployerCandidateFeignClient;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class EmployerCandidateFeignClientFallback implements EmployerCandidateFeignClient {
    @Override
    public Result<Vitae> getUserVitae(Long candidateId) {
        System.out.println(MessageConstant.GET_USER_VITAE_FAILED);
        throw new RuntimeException(MessageConstant.GET_USER_VITAE_FAILED);
    }

    @Override
    public Result<List<String>> getTagNameListByUserId(Long userId) {
        System.out.println(MessageConstant.GET_TAG_LIST_FAILED);
        throw new RuntimeException(MessageConstant.GET_TAG_LIST_FAILED);
    }
}
